import { createStore, applyMiddleware } from 'redux'
import counterReducer from './counter_reducer'
import thunk from 'redux-thunk'

// 创建 Store 对象，reducer 为入参
export default createStore(counterReducer, applyMiddleware(thunk))